package com.cinema.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user")
public class User {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Long userId;
    private String userName;
    private String password;
    private String salt;
    private String email;
    private String phone;
    private Boolean sex;
    private String userPicture;
    private Long roleId;
    private String birthday;
    private String autograph;
    @TableField(exist = false)
    private Role role;
}
